package vip.liux.backend.infrastructure.jpa.gen;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import vip.liux.backend.domain.models.gen.GenDataSource;

import java.util.Optional;

@Repository
public interface GenDataSourceMapper extends JpaRepository<GenDataSource, Long> {

    Optional<GenDataSource> findTop1ByDefaultDataSourceTrue();
}




